package day15.tarena.com;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
public class TestThrows {
	
	public void test(int a, int b) 
		//throws ArithmeticException     //throws RuntimeException 没有任何的现实意义
	{
			a= a/b;
	}
	public void test1() throws FileNotFoundException{
		FileInputStream fis = new 
		FileInputStream("/home/hfsd0909/Register.java");
		System.out.println("打开成功");
	}
	public void test2()throws FileNotFoundException{
		test1();
	}
	public static void main(String[] args) {
		TestThrows tt = new TestThrows();
		try{
			tt.test2();
		}catch(Exception ee){
			ee.printStackTrace();
		}
	}

}
